
package gameUtils;

public class LinearListNode {
	public LinearListNode previousNode;
	public LinearListNode nextNode;
	public Object nodeContents;
	
	public String toString(){
		return nodeContents.toString();
	}
	
	public LinearListNode(){
		previousNode = null;
		nextNode = null;
	}
	public LinearListNode(Object o){
		previousNode = null;
		nextNode = null;
		this.nodeContents = o;
	}
	public LinearListNode(Object o, LinearListNode previousNode){
		this.previousNode = previousNode;
		nextNode = null;
		this.nodeContents = o;
	}
	public LinearListNode(Object o, LinearListNode previousNode, LinearListNode nextNode){
		this.previousNode = previousNode;
		this.nextNode = nextNode;
		this.nodeContents = o;
	}
}
